package com.cql.configuration;

import com.cql.controller.InstanceClient;
import com.cql.pojo.Person;
import org.springframework.stereotype.Component;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

@Component
public class InstanceFallBack implements InstanceClient { //继承需要进行回滚的那个接口，与此对应的是接口的fallback写的是该类，而该类需要继承接口
    @Override
    public String sayHello(String name) {
        return "error";
    }

    @Override
    public String sayHello2(String name) {
        return "error";
    }

    @Override
    public String getPerson(Person param) {
        return "null";
    }

    @Override
    public String fileUpload(MultipartFile file) {
        return "null";
    }


}
